package com.niit.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
// 标注一个类为Spring容器的Bean 把普通pojo实例化到spring容器中
@FeignClient(value = "LoginProvide")//远程调用提供者
public interface PaymentOpenService {
//远程调用接口
    @GetMapping("/payment/nacos/{id}")

    public String getPaymemt(@PathVariable("id") int id);

}
